package com.jhgk.jhcee.expert.service;

import com.github.pagehelper.PageInfo;
import com.jhgk.jhcee.auth.model.SchoolRecruit;
import com.jhgk.jhcee.common.resultful.BasisResultful;
import com.jhgk.jhcee.common.resultful.PageResultful;
import com.jhgk.jhcee.expert.domain.model.SchoolRecruitMode;

import java.util.List;

/**
 * @author: xiezhongping
 * @description:
 * @date: 2021/8/10 9:12.
 */
public interface SchoolRecruitService {

    /**
     * 分页查询
     * @param schoolRecruitMode
     * @return
     */
    PageResultful<PageInfo<SchoolRecruit>> searchSchoolRecruit(SchoolRecruitMode schoolRecruitMode);

    /**
     * 条件删除
     * @param schoolRecruit
     * @return
     */
    BasisResultful<Object> deleteSchoolRecruit(SchoolRecruit schoolRecruit);

    /**
     * 批量更新
     * @param schoolRecruits
     * @return
     */
    BasisResultful<Object> updateBatchSchoolRecruit(List<SchoolRecruit> schoolRecruits);

    /**
     * 批量新增
     * @param schoolRecruits
     * @return
     */
    BasisResultful<Object> addBatch(List<SchoolRecruit> schoolRecruits);

    /**
     * 条件更新
     * @param schoolRecruit
     * @return
     */
    BasisResultful<Object> updateSchoolRecruit(String provinceUuid,Integer year);
}
